package com.ruoyi.demooo1.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.demooo1.domain.OneDayDivination;

import java.util.List;

/**
 * 每日一卦Mapper接口
 *
 * @author ted
 * @date 2023-08-22
 */
public interface OneDayDivinationMapper extends BaseMapper<OneDayDivination> {
    /**
     * 查询每日一卦
     *
     * @param id 每日一卦主键
     * @return 每日一卦
     */
    public OneDayDivination selectOneDayDivinationById(String id);

    /**
     * 查询每日一卦列表
     *
     * @param oneDayDivination 每日一卦
     * @return 每日一卦集合
     */
    public List<OneDayDivination> selectOneDayDivinationList(OneDayDivination oneDayDivination);

    /**
     * 新增每日一卦
     *
     * @param oneDayDivination 每日一卦
     * @return 结果
     */
    public int insertOneDayDivination(OneDayDivination oneDayDivination);

    /**
     * 修改每日一卦
     *
     * @param oneDayDivination 每日一卦
     * @return 结果
     */
    public int updateOneDayDivination(OneDayDivination oneDayDivination);

    /**
     * 删除每日一卦
     *
     * @param id 每日一卦主键
     * @return 结果
     */
    public int deleteOneDayDivinationById(String id);

    /**
     * 批量删除每日一卦
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOneDayDivinationByIds(String[] ids);
}
